import {storeBindingsBehavior} from "mobx-miniprogram-bindings";
import base from "@src/store/base";

Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: [{
    store: base,
    fields: ['themeColor']
  }],
  data: {

  },
  methods: {
    onLoad() {
      const eventChannel = this.getOpenerEventChannel()
      eventChannel.on('item', (data) => {
        this.setData({listItem: data})
      })
    }
  }
})
